<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>
<script type='text/javascript' src='<?php echo $this->_webroot('servtools/date/WdatePicker.js'); ?>'></script>
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
    
    <div class="main-right">
    	<div class="tuikuan_title">
        	<span>退款流程介绍</span>
        </div>
        <div class="tuikuan_info">
        	<div class="tuikuan_liu">待审批 > 已审批 > 退款中 > 退款成功</div>
            <p>待审批:退款申请已经提交，等待财务人员进行审批</p>
            <p>已审批:财务人员已经审批，等待支付</p>
            <p>退款中:爱搜货正在将退款支付给您收款账户所在的银行</p>
            <p>退款成功:款项已成功退回到您收款账户所在的银行，等待银行处理退款。请及时查询您的银行账户余额变动</p>
        </div>
        <div class="tuikuan_info_tishi">特别说明：如果您设置的银行账户信息有误，款项无法退还到您的账户上，会显示"退款失败"。请您核对账户信息后重新提交退款申请。</div>

        <div class="zhanghu_info">
        	<div class="tuikuan_title tuikuan_title3">
        		<span>我要提现</span><span style="color:red">&nbsp;&nbsp;&nbsp;<?php echo $msg; ?></span>
        	</div>
        </div>			
        <div class="tuikuan_search tuikuan_search3" style="padding: 2px 10px 30px;">
        	<form action="<?php echo $this->_url('account/drawback/');?>?id=<?php echo $id;?>" method="post">
            	<div class="jy_search_input">
            	<span>收款人姓名 ：</span><input class="mai_input"  name="data[userdrawback][name]" value="<?php echo  $userdrawback['name'];?>" type="text"  maxlength="20"/> 
				<span>银行名称: </span><input class="mai_input" name="data[userdrawback][yinghang]" value="<?php echo  $userdrawback['yinghang'];?>" type="text"  maxlength="50"/>
				<span>收款账号: </span><input class="mai_input" name="data[userdrawback][zhanghao]" value="<?php echo  $userdrawback['zhanghao'];?>" type="text"  maxlength="50"/>
                </div>
                <div class="jy_search_input">
            	<span>提现金额：</span><input class="mai_input" name="data[userdrawback][money]" value="<?php echo  $userdrawback['money'];?>" type="text"  maxlength="10"  onchange="if(/\D/.test(this.value)){alert('只能输入数字');this.value='';}" /> 
            	<span>币种：</span><select class="mai_input" name="data[userdrawback][moneytype]"><option value="人民币"  <?php if ($userdrawback['moneytype']=='人民币') { ?> selected <?php } ?>>人民币</option></select>
				<span>备注: </span><input class="mai_input" name="data[userdrawback][beizhu]" value="<?php echo  $userdrawback['beizhu'];?>" type="text"  maxlength="50"/>
                </div>
                <div class="jy_search_input" style="margin-left:50px;">
				    <input type="hidden" name="data[userdrawback][id]" value="<?php echo  isset($userdrawback['id'])?$userdrawback['id']:'';?>" />
            		<input class="btn" type="submit" value="提交" />
                	<input class="btn" type="reset" value="重置" />
					
                </div>                
            </form>
        </div>       
		
        <div class="tuikuan_search tuikuan_search2">
        	<form action="<?php echo $this->_url('account/drawback');?>" method="get">
            	<div class="jy_search_input">
            	<span>我 要 看 ：</span>
				<input class="Wdate" type="text" name="stime" id="start_time" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $starttime;?>" />~
				<input class="Wdate" type="text" name="etime" id="end_time" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $endtime;?>" />
                </div>
                <div class="jy_search_input">
            	<span>提款状态：</span>
				<select  name="type" style="border: 1px solid #999999;height: 20px;">
				    <option value="0"  <?php if ($type==0) { ?> selected <?php } ?> >全部</option>				
				    <option value="1" <?php if ($type==1) { ?> selected <?php } ?> >正在审核</option>
				    <option value="2"  <?php if ($type==2) { ?> selected <?php } ?> >取消退款</option>					
				    <option value="3"  <?php if ($type==2) { ?> selected <?php } ?> >成功退款</option>
				    <option value="4"  <?php if ($type==2) { ?> selected <?php } ?> >退款失败</option>					
				</select>
				
                </div>
				
                <div class="jy_search_input" style="margin-left:50px;">
            		<input class="btn" type="submit" value="查寻" />
                	<!--<input class="btn" type="reset" value="重置" />-->
                </div>
            </form>
        </div>
		
        <div class="tuikuan_list">
        	<table class="tuikuan_list_table">
            	<thead>
                	<tr>
                        <th width="75">申请编号</th>
                        <th width="190">申请日期</th>
                        <th width="80">退款币种</th>
                        <th width="90">退款金额</th>
                        <th width="100">收款人</th>
                        <th width="200">客户银行账号</th>
                        <th width="100">完成状态</th>
                        <th width="100">操作</th>
                    </tr>
                </thead>
                <tbody>

				<?php $k=1; foreach($result as $value) { $k++; ?>
                	<tr class="tk_colorbg<?php if($k%2==0) { echo '1';}else {echo '2';}?>">
                    	<td><?php echo $value['userdrawback']['id'];?></td>
                        <td><?php echo $value['userdrawback']['addtime']; ?></td>
                        <td><?php echo $value['userdrawback']['moneytype'];?></td>
                        <td><?php echo $value['userdrawback']['money'];?>元</td>
                        <td><?php echo $value['userdrawback']['name'];?></td>
                        <td><?php echo $value['userdrawback']['zhanghao'];?></td>
                        <td>
						<?php if ($value['userdrawback']['istui']==0) { ?>
						正在审核...
						<?php }else if ($value['userdrawback']['istui']==1) { ?>						
                        已取消退款
						<?php }else if ($value['userdrawback']['istui']==2) { ?>
						退款成功
						<?php }else if ($value['userdrawback']['istui']==3) { ?>						
						退款失败，原因是<?php echo $value['userdrawback']['tui_why'];?>
						<?php } ?>
						</td>
                        <td>
						<?php if ($value['userdrawback']['istui']==0) { ?>
						<a href="<?php echo $this->_url('account/drawback/');?>?id=<?php echo $value['userdrawback']['id'];?>" style="color: #5D90CA;">修改</a>
						<br /><a href="<?php echo $this->_url('account/deldrawback/');?>?id=<?php echo $value['userdrawback']['id'];?>" style="color: #5D90CA;">取消</a>
						<?php } ?>
						</td>
                    </tr>
				<?php } ?>					
				
                </tbody>
            </table>
        </div>
        
        <div class="mai_page_box">
        	<!--<a class="tk_export" href="#">导出</a>-->
            <div class="mai_page">
                <span>共<?php  echo $this->params['paging']['userdrawback']['count']; ?>条记录</span>
				<a href="<?php  echo Router::ArrayToUrl($this->params['paging']['userdrawback']['pageurl'] + array('page'=> '1')) ; ?>">首页</a>
				<?php if ( $this->params['paging']['userdrawback']['prevPage'] ) { ?><a href="<?php  echo Router::ArrayToUrl($this->params['paging']['userdrawback']['pageurl'] + array('page'=> $this->params['paging']['userdrawback']['page'] -1 )) ; ?>">上一页</a><?php } ?>
                <span>当前第<?php  echo $this->params['paging']['userdrawback']['page']; ?>页/共<?php  echo $this->params['paging']['userdrawback']['pageCount']; ?>页</span>
                <?php if ( $this->params['paging']['userdrawback']['nextPage'] ) { ?><a href="<?php  echo Router::ArrayToUrl($this->params['paging']['userdrawback']['pageurl'] + array('page'=> $this->params['paging']['userdrawback']['page'] +1 )) ; ?>">下一页</a><?php } ?>
                <a href="<?php  echo Router::ArrayToUrl($this->params['paging']['userdrawback']['pageurl'] + array('page'=> $this->params['paging']['userdrawback']['pageCount'])) ; ?>">尾页</a>
			</div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="clear"></div>
</div>


<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>
</body>
</html>